#pragma once

class DomWidget;
class DomLayout;
class DomLayoutItem;


class CSizePolicy
{
public:
	enum ESizeAction
	{
		eUnKnow,
		eFix,
		eUnFix
	};

	static int unFixDefaultHeight;
	
	static int fixDefaultHeight;
	
	static int fixMinimumHeight;

	static int fixSpace;

	static int edgeMargin;

	static ESizeAction sizeAction(DomLayoutItem *pLayoutItem);

	static ESizeAction sizeAction(DomLayout *layout);

	static ESizeAction sizeAction(DomWidget *widget);

	static bool crossMoreUnfix(DomLayoutItem *item, std::vector<DomLayoutItem*> items);

	static int defaultHeight(DomWidget *pWidget);
}; 


